﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FA.Library.Plugin;

namespace FA.Library.Sim.Events
{
    /// <summary>
    /// Event handler for sim plugin exceptions.
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="param"></param>
    public delegate void SimExceptionEvent (object sender, SimExceptionEventArgs param);

    /// <summary>
    /// Event data.
    /// </summary>
    public class SimExceptionEventArgs : SimEventParam
    {
        public Exception Exception { get; private set; }

        public SimExceptionEventArgs(Exception exception)
        {
            Exception = exception;
        }
    }
}